import { createStore } from 'vuex'
import storage from "../utils/storage"
import mutations from './mutations'
const state = {
    userInfo: storage.getItem('userInfo') || "",
    token: '',
    menuList: storage.getItem('menuList') || "",
    actionList: storage.getItem('actionList') || ""
}

const store = createStore({
    state,
    mutations
})
export default store
